<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    class Book {
      constructor(title,page,insb) {
        this.title = title
        this.page = page
        this.insb = insb
      }
      printTitle() {
        console.log(this.title)
      }
    }
    class Itbook extends Book {
      constructor(title,page,insb,technology) {
        super(title,page,insb)
        this.technology = technology
      }
      printTechnology() {
        console.lg(this.technology)
      }
    }
    console.log(new Itbook('数据结构与算法','20页','insb','前端开发'))
  </script>
</body>
</html>